<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><html>
<head>
	<title>投票对象列表</title>
	<meta charset='utf-8'/>
	<script type='text/javascript' src='http://localhost/tc_vote/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/tc_vote/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/tc_vote/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/tc_vote/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/tc_vote/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
	<script type="text/javascript" src="http://localhost/tc_vote/tcvote/App/Admin/Tpl/Object/js/content.js"></script>
</head>
<body>

<div class="wrap">
<div class='title-header'>投票对象列表 </div>
	<table class='table2 hd-form'>
		<thead>
			<tr>
				<td class="w30"><input type="checkbox" id="select_all"/></td>
				<td class='w30'>ID</td>
				<td class='w50'>名称</td>
				<td class='w50'>才艺</td>
				<td class='w50'>得票数</td>
				<td class='w50'>年龄</td>
				<td class='w50'>身高</td>
				<td class='w50'>学历</td>
				<td class='w50'>职业</td>
				<td>参赛宣言</td>
				<td class='w100'>操作</td>
			</tr>
		</thead>
		<?php $hd["list"]["v"]["total"]=0;if(isset($vote) && !empty($vote)):$_id_v=0;$_index_v=0;$lastv=min(1000,count($vote));
$hd["list"]["v"]["first"]=true;
$hd["list"]["v"]["last"]=false;
$_total_v=ceil($lastv/1);$hd["list"]["v"]["total"]=$_total_v;
$_data_v = array_slice($vote,0,$lastv);
if(count($_data_v)==0):echo "";
else:
foreach($_data_v as $key=>$v):
if(($_id_v)%1==0):$_id_v++;else:$_id_v++;continue;endif;
$hd["list"]["v"]["index"]=++$_index_v;
if($_index_v>=$_total_v):$hd["list"]["v"]["last"]=true;endif;?>

		<tr>
				<td><input type="checkbox" name="oid[]" value="<?php echo $v['oid'];?>"/></td>
				<td><?php echo $v['oid'];?></td>
				<td><?php echo $v['name'];?></td>
				<td><?php echo $v['talent'];?></td>
				<td><?php echo $v['count'];?></td>
				<td><?php echo $v['age'];?></td>
				<td><?php echo $v['height'];?></td>
				<td><?php echo $v['loe'];?></td>
				<td><?php echo $v['Profession'];?></td>
				<td><?php echo $v['word'];?></td>
				<td>
					<a href="<?php echo $v['link'];?>">查看</a> |
					<a href="<?php echo u(edit,array('oid'=>$v['oid']));?>">编辑</a> |
					<a href="javascript:hd_ajax('<?php echo U(del);?>',{oid:<?php echo $v['oid'];?>}); ">删除</a>
				</td>
			</tr>
		<?php $hd["list"]["v"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
	</table>
	<div class="page1">
	<?php echo $page;?>
	</div>
</div>
<div class="position-bottom">
	<input type="button" class="hd-cancel" value="全选" onclick="select_all('.table2')"/>
	<input type="button" class="hd-cancel" value="反选" onclick="reverse_select('.table2')"/>
	<input type="button" class="hd-cancel" onclick="del()" value="批量删除"/>
</div>
</body>
</html>
